const mongoose = require("mongoose")
const Schema = mongoose.Schema
const format = require('../utils/format')
const Speak_type = {
    rich_text: {
        type: String,
        required: [true, '必填内容'],
    },
    textual: {
        type: String,
        required: [true, '必填内容'],
    },
    publish_time: {
        type: Number,
        default: Date.now()
    },
    year: {
        type: Number,
        default: 2024
    },
    month: {
        type: Number,
        default: 3
    }
}

const SpeakModel = mongoose.model("speak", new Schema(Speak_type))
module.exports = SpeakModel
